<?php
include "WeChat.php";
$appid = "wxcc20ec64170816e1";
$appsecret = "3f2339cc60aa05a96c5fa8d7acd02e62";
$weChat=new Wechat($appid,$appsecret);
// echo $weChat->get_access_token();
//菜单数据
$data = '{
     "button":[
     {    
          "type":"view",
          "name":"申请会员",
          "url":"https://kan0n.azurewebsites.net/jifen/member/html/try.html"
      },
      {    
          "type":"view",
          "name":"个人中心",
          "url":"https://kan0n.azurewebsites.net/jifen/member/html/try.html"

      }
      
       
     ]
 }';
var_dump($weChat->menu_create($data));
// var_dump($weChat->responseMsg());
